bzcj_currentDept="1002O110000000000MMQ"; //包装车间
//获取所有的岗位
var JX_BZCJ_YIXIANYUANGONG="",JX_BZCJ_ZUZHANG="",JX_BZCJ_ZHUGUAN="",JX_BZCJ_FUZHUZHUGUAN="",JX_BZCJ_ZONGJIHUAZHUGUAN="",JX_BZCJ_FUZHUZHUGUAN_CODE,JX_BZCJ_ZONGJIHUAZHUGUAN_CODE,
    JX_BZCJ_FUZHURENYUAN_CODE,JX_BZCJ_FUZHURENYUAN="",JX_BZCJ_FUZHUZUZHANG="",JX_BZCJ_BANYUNGONG="",JX_BZCJ_QINGJIEGONG="",JX_BZCJ_ZUZHANG_CODE="",JX_BZCJ_FUZHUZUZHANG_CODE;
//10：一线员工，11：组长、12：产线主管、13：辅助人员、14、辅助组长；15、搬运工；16、清洁工；17、辅助主管
var bzcjPost=commonAjax("post","/jxEmp/getJxEmpPost",{"pkDept":bzcj_currentDept,"pkOrg":ORG_HUIZHOU_CODE})
//console.log("包装车间所有职位：",bzcjPost);
bzcjPost.forEach(function (val) {
    var id = val.id;
    var name = val.name;
    switch (id) {
        case 10:
            JX_BZCJ_YIXIANYUANGONG=name;        //一线员工
            break;
        case 11:
            JX_BZCJ_ZUZHANG=name;               //组长
            JX_BZCJ_ZUZHANG_CODE=id
        case 12:
            JX_BZCJ_ZHUGUAN=name;        //产线主管
            break;
        case 13:
            JX_BZCJ_FUZHURENYUAN=name;      //辅助人员
            JX_BZCJ_FUZHURENYUAN_CODE=id
            break;
        case 14:
            JX_BZCJ_FUZHUZUZHANG=name;      //辅助组长
            JX_BZCJ_FUZHUZUZHANG_CODE=id
            break;
        case 15:
            JX_BZCJ_BANYUNGONG=name;     //搬运工
            break;
        case 16:
            JX_BZCJ_QINGJIEGONG=name;       //清洁工
            break;
        case 17:
            JX_BZCJ_FUZHUZHUGUAN=name;      //辅助主管
            JX_BZCJ_FUZHUZHUGUAN_CODE=id
            break;
        case 18:
            JX_BZCJ_ZONGJIHUAZHUGUAN=name;   //总计划主管
            JX_BZCJ_ZONGJIHUAZHUGUAN_CODE=id;
            break;
    }
})
